package GUIs;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author nik
 */
public class ProductCreation extends javax.swing.JFrame {

    /**
     * Creates new form Dimioyrgia_proiontos
     */
    public ProductCreation() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Label_ProductCreation_Welcome = new javax.swing.JLabel();
        Label_ProductCreation_Name = new javax.swing.JLabel();
        Label_ProductCreation_Code = new javax.swing.JLabel();
        Label_ProductCreation_Points = new javax.swing.JLabel();
        Label_ProductCreation_Price = new javax.swing.JLabel();
        TextField_ProductCreation_Name = new javax.swing.JTextField();
        TextField_ProductCreation_Code = new javax.swing.JTextField();
        TextField_ProductCreation_Points = new javax.swing.JTextField();
        TextField_ProductCreation_Price = new javax.swing.JTextField();
        TextField_ProductCreation_Save = new javax.swing.JButton();
        TextField_ProductCreation_Cancel = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        Label_ProductCreation_Welcome.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        Label_ProductCreation_Welcome.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Label_ProductCreation_Welcome.setText("Εισαγωγή προϊόντος");

        Label_ProductCreation_Name.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        Label_ProductCreation_Name.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        Label_ProductCreation_Name.setText("Όνομα προϊόντος :");

        Label_ProductCreation_Code.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        Label_ProductCreation_Code.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        Label_ProductCreation_Code.setText("Κωδικός :");

        Label_ProductCreation_Points.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        Label_ProductCreation_Points.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        Label_ProductCreation_Points.setText("Πόντοι :");

        Label_ProductCreation_Price.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        Label_ProductCreation_Price.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        Label_ProductCreation_Price.setText("Τιμή :");

        TextField_ProductCreation_Name.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        TextField_ProductCreation_Name.setText("δατα");
        TextField_ProductCreation_Name.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TextField_ProductCreation_NameActionPerformed(evt);
            }
        });

        TextField_ProductCreation_Code.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        TextField_ProductCreation_Code.setText("jTextField2");

        TextField_ProductCreation_Points.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        TextField_ProductCreation_Points.setText("jTextField3");

        TextField_ProductCreation_Price.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        TextField_ProductCreation_Price.setText("jTextField4");

        TextField_ProductCreation_Save.setText("Καταχώρηση");

        TextField_ProductCreation_Cancel.setText("Άκυρο");
        TextField_ProductCreation_Cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TextField_ProductCreation_CancelActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(TextField_ProductCreation_Save)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(TextField_ProductCreation_Cancel))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 3, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Label_ProductCreation_Name)
                            .addComponent(Label_ProductCreation_Code, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Label_ProductCreation_Points, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Label_ProductCreation_Price, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(TextField_ProductCreation_Points, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(TextField_ProductCreation_Price, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(TextField_ProductCreation_Code, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(TextField_ProductCreation_Name, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(Label_ProductCreation_Welcome, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 30, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Label_ProductCreation_Welcome)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Label_ProductCreation_Name)
                    .addComponent(TextField_ProductCreation_Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Label_ProductCreation_Code)
                    .addComponent(TextField_ProductCreation_Code, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Label_ProductCreation_Points)
                    .addComponent(TextField_ProductCreation_Points, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Label_ProductCreation_Price)
                    .addComponent(TextField_ProductCreation_Price, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(TextField_ProductCreation_Save)
                    .addComponent(TextField_ProductCreation_Cancel))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void TextField_ProductCreation_CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TextField_ProductCreation_CancelActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
    }//GEN-LAST:event_TextField_ProductCreation_CancelActionPerformed

    private void TextField_ProductCreation_NameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TextField_ProductCreation_NameActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_TextField_ProductCreation_NameActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(ProductCreation.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(ProductCreation.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(ProductCreation.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(ProductCreation.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ProductCreation().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Label_ProductCreation_Code;
    private javax.swing.JLabel Label_ProductCreation_Name;
    private javax.swing.JLabel Label_ProductCreation_Points;
    private javax.swing.JLabel Label_ProductCreation_Price;
    private javax.swing.JLabel Label_ProductCreation_Welcome;
    private javax.swing.JButton TextField_ProductCreation_Cancel;
    private javax.swing.JTextField TextField_ProductCreation_Code;
    private javax.swing.JTextField TextField_ProductCreation_Name;
    private javax.swing.JTextField TextField_ProductCreation_Points;
    private javax.swing.JTextField TextField_ProductCreation_Price;
    private javax.swing.JButton TextField_ProductCreation_Save;
    // End of variables declaration//GEN-END:variables
}
